﻿@model ScrumPilot.Domain.Models.TaskForScore
@using (Ajax.BeginForm("TaskScore", "Tasks", null, new AjaxOptions { OnComplete = "return myPage.EditDialogComplete();" }, new { @id = "ScoreForm" }))
{
    @Html.HiddenFor(model => model.ID)
    @Html.HiddenFor(model => model.Level)
    @Html.HiddenFor(model => model.Priority)
    @Html.HiddenFor(model => model.Duration)
    @Html.HiddenFor(model => model.Date)
    <table style="width: 100%">
        <tr>
            <td id="TaskScoreAdjust">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Level)
                </div>
                <div id="stLevel" style="float: left">
                </div>
                <div id="stLevelInt" class="ui-corner-all" style="padding: 6px; float: left; background-color: #FFCC00;
                    margin-top: 0px;">
                </div>
                <div class="editor-label" style="clear: both">
                    @Html.LabelFor(model => model.Priority)
                </div>
                <div id="stPriority" style="float: left">
                </div>
                <div id="stPriorityInt" class="ui-corner-all" style="padding: 6px; float: left; background-color: #FFCC00;
                    margin-top: 0px;">
                </div>
  
                <div class="editor-label" style="clear: both">
                    @Html.LabelFor(model => model.Duration)
                </div>
                <div id="stDuration" style="float: left">
                </div>
                <div id="stDurationInt" class="ui-corner-all" style="padding: 6px; float: left; background-color: #FFCC00;
                    margin-top: 0px;">
                </div>
            </td>
            <td id="ScoreView">
                <span id="actualScore"></span>
            </td>
        </tr>
    </table>
}